package com.teamall.web.main.db.po;

import java.math.BigDecimal;
import java.text.NumberFormat;

import org.apache.commons.lang.StringUtils;

import com.teamall.framework.dto.AbstractDto;

public class CodeStatTownPO extends AbstractDto{
	private Integer  townId;
	private String  townName;
	private Integer  residentPop;
	private Long  povertyPop;
	private BigDecimal  povertyRate;
	private Long  villageNum;
	private Long  povertyVillageNum;
	private Long  povertyFamilyNum;
	private Long  aidStaffNum;
	private Long  aidProject;
	private Long  aidNum;
    private String povertyRatePercent;

    public String getPovertyRatePercent() {
        NumberFormat nt = NumberFormat.getPercentInstance();
        //设置百分数精确度2即保留两位小数
        nt.setMinimumFractionDigits(2);
        return nt.format(povertyRate.doubleValue());
    }
    public Integer getTownId() {
        return townId;
    }
    public void setTownId(Integer townId) {
        this.townId = townId;
    }

    
    public String getTownName() {
        return StringUtils.isBlank(townName) ? townName : townName.trim();
    }
    public void setTownName(String townName) {
        this.townName = townName;
    }
    
    
    public Integer getResidentPop() {
        return residentPop;
    }
    public void setResidentPop(Integer residentPop) {
        this.residentPop = residentPop;
    }

    
    public Long getPovertyPop() {
        return povertyPop;
    }
    public void setPovertyPop(Long povertyPop) {
        this.povertyPop = povertyPop;
    }

    
    public BigDecimal getPovertyRate() {
        return povertyRate;
    }
    public void setPovertyRate(BigDecimal povertyRate) {
        this.povertyRate = povertyRate;
    }

    
    public Long getVillageNum() {
        return villageNum;
    }
    public void setVillageNum(Long villageNum) {
        this.villageNum = villageNum;
    }

    
    public Long getPovertyVillageNum() {
        return povertyVillageNum;
    }
    public void setPovertyVillageNum(Long povertyVillageNum) {
        this.povertyVillageNum = povertyVillageNum;
    }

    
    public Long getPovertyFamilyNum() {
        return povertyFamilyNum;
    }
    public void setPovertyFamilyNum(Long povertyFamilyNum) {
        this.povertyFamilyNum = povertyFamilyNum;
    }

    
    public Long getAidStaffNum() {
        return aidStaffNum;
    }
    public void setAidStaffNum(Long aidStaffNum) {
        this.aidStaffNum = aidStaffNum;
    }

    
    public Long getAidProject() {
        return aidProject;
    }
    public void setAidProject(Long aidProject) {
        this.aidProject = aidProject;
    }

    
    public Long getAidNum() {
        return aidNum;
    }
    public void setAidNum(Long aidNum) {
        this.aidNum = aidNum;
    }

    
}